<?php
ob_start();

require 'definitions.inc.php';
require 'phpajax/phpajax.php';
require 'classDB.inc.php';
require 'classMain.inc.php';
require 'plugins/input/classInput.inc.php';
require 'plugins/url/classURL.inc.php';
require 'plugins/session/classSession.inc.php';
require 'plugins/i18n/classI18N.inc.php';
require 'plugins/follow/classFollow.inc.php';
require 'plugins/window/classWindow.inc.php';
require 'plugins/template/classTemplate.inc.php';
require 'plugins/menu/classMenu.inc.php';
require 'plugins/menu/classTopMenu.inc.php';
require 'plugins/article/classArticle.inc.php';
require 'plugins/article/classArticleService.inc.php';
require 'plugins/paging/classPaging.inc.php';
require 'plugins/product/classProduct.inc.php';
require 'plugins/product/classItemDetail.inc.php';
require 'plugins/product/classPriceExport.inc.php';
require 'plugins/product/classProductService.inc.php';
require 'plugins/product/classProductSearch.inc.php';
require 'plugins/product/classSharedProduct.inc.php';
    
require 'plugins/imageviewer/classImageViewer.inc.php';
require 'plugins/imageviewer/classPhotoAlbum.inc.php';  
require 'plugins/filesystem/classFileSystem.inc.php';
require 'plugins/imageviewer/classImageViewerXMLService.inc.php';  
    
require 'plugins/basket/classBasket.inc.php';
require 'plugins/basket/classBasketsDetail.inc.php';
require 'plugins/basket/classBasketService.inc.php';
require 'plugins/users/classUsers.inc.php';
require 'plugins/users/classUsersData.inc.php';
require 'plugins/users/classUsersForms.inc.php';
require 'plugins/users/classUsersService.inc.php';
require 'plugins/order/classOrder.inc.php';
require 'plugins/order/classOrderData.inc.php';
require 'plugins/order/classOrderForms.inc.php';
require 'plugins/order/classOrderService.inc.php';
require 'plugins/order/classDeliveryType.inc.php';
require 'plugins/order/classPaymentType.inc.php';
require 'plugins/order/OrdersList/classOrdersList.inc.php';
require 'plugins/simpleMessage/classSimpleMessage.inc.php';
require 'plugins/simpleMessage/classSimpleMessageData.inc.php';
require 'plugins/simpleMessage/classSimpleMessageForms.inc.php';

require 'plugins/instcheck/ich_data.php';
require 'plugins/instcheck/ich_forms.php';
    

session_start();

//set language
$_i18n = new classI18N();
$language = $_i18n->getActual();
if($language!=-1 and $language!='') require $language;

//class for template management
$_Skin = new classTemplate();

//class for DB management
$_DB = new classDB();
$dbRes = $_DB->open();

//installation check
$_inst = new ich_data();
$_inst->check($dbRes);

//class for shop basket management
$_Basket = new classBasket();
//class for users management
$_User = new classUsers();

//render template and fill it with content
//phpajax::init();
$_MainClass = new classMain();
$_MainClass->getTemplate($_Skin->getActual());

//close DB
$_DB->close();
?>